#pragma once
#include "Hash_table.h";

namespace ssy
{
	template<class K>
	class unordered_set
	{
		struct unordered_set_KofT
		{
			K operator()(const K& key)
			{
				return key;
			}
		};

	public:
		typedef typename ssy::hash_table<K, K, unordered_set_KofT>::iterator iterator;

		iterator begin()
		{
			return _ht.begin();
		}

		iterator end()
		{
			return _ht.end();
		}

		bool insert(const K& key)
		{
			return _ht.insert(key);
		}

	private:
		hash_table<K, K, unordered_set_KofT> _ht;
	};
}